<%@ include file = "/common/ini.jsp"%>
<%@ include file = "/common/_log4j.jsp"%>
<%@ include file = "/common/_ApplicationContext_init.jsp"%>
<%@ include file = "/js/_js_for_select.jsp"%>
<script>
    delAllOptions(parent.detailForm.parentId);
    addOption(parent.detailForm.parentId,"null","无");
<%
    logger.debug("开始查询分区对应的一级栏目");
    if(request.getParameter("areaId") != null && !request.getParameter("areaId").equals("null"))
    {
        AreaManager areaManager = (AreaManager)applicationContext.getBean("areaManager");
        Area area = (Area)areaManager.get(request.getParameter("areaId"));
        Object[] columns = area.getColumns().toArray();
        for(int i = 0; i < columns.length; i ++)
        {
            Column column1 = (Column)columns[i];
            %>addOption(parent.detailForm.parentId,"<%= column1.getId()%>","<%= column1.getName()%>");<%
        } // for
        %>parent.detailForm.parentId.value="<%= request.getParameter("columnId")%>";<%
    } // if
%>
</script> 
